package object;

interface FatherInterface {
	void swim();
}

class Fish extends FatherObject implements FatherInterface {

	public Fish() {
//		super();
	}

	public Fish(String name, int age) {
		super(name, age);
	}

	@Override
	public void eat() {
		System.out.println("鱼吃东西");
	}

	@Override
	public void swim() {
		System.out.println("鱼在游泳");
	}
}

public class InterfaceObject {
	public static void main(String[] args) {

		Fish f = new Fish("11", 22);
		System.out.println(f);
	}
}
